<?php
namespace Addons\smarty;

use Smarty;

class Swang extends Smarty{

 function __construct()
   {

        parent::__construct();

        $this->setTemplateDir(__ROOT__.'/Public/Wang/');
        $this->setCompileDir(__ROOT__.'/App/Data/templates_c/');
        $this->setConfigDir(__ROOT__.'/App/Data/configs/');
        $this->setCacheDir(__ROOT__.'/App/Data/cache/');

        $this->caching = Smarty::CACHING_OFF;//无缓存
        //$this->assign('app_name', 'Guest Book');
   }


}
